package com.yt.pojo;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.ToString;

import java.io.Serializable;
@Data//生成getter setter
@ToString
@AllArgsConstructor
@NoArgsConstructor
@ApiModel(description = "ReturnResult",value = "返回数据类型")
public class ReturnResult<T> implements Serializable {
    //状态码
    @ApiModelProperty(value = "状态码",required = false)
    private Integer code;
    //提示信息
    @ApiModelProperty(value = "提示信息",required = false)
    private String message;
    //返回数据
    @ApiModelProperty(value = "返回数据",required = false)
    private T data;

}
